package com.qianfeng1.day6_java8.monday.lambda.fc.fc4;


import com.qianfeng1.day6_java8.monday.lambda.demo.User;

import java.util.function.Predicate;


/**
 * 作者：黎杭
 * 日期：2020/2/17
 */
public class FindGirl implements Predicate<User> {
    @Override
    public boolean test(User user) {
        return 16 < user.getAge() && 30 > user.getAge() && "女".equals(user.getSex());// 认为合格
    }
}
